package com.example.dw.apptest1;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;

public class Page64 extends AppCompatActivity {

    private int CODE = 0x177;
    private ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.page64);
        imageView = findViewById(R.id.img123);

    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == CODE && resultCode == CODE) {
            int back_image = data.getIntExtra("back_img", R.drawable.img641);
            imageView.setImageResource(back_image);
        }
    }

    public void check64(View view) {
        Intent intent = new Intent(Page64.this, Page65.class);
        startActivityForResult(intent, CODE);
    }
}
